<%@ page contentType="text/html;charset=UTF-8" language="java"  pageEncoding="utf-8" %>
<html>
<body>
<h2>Hello World!</h2>
<%--pageContext.request.contextPath 当前目录/url pattern--%>
<% String name="saxon";%>
name=<%=name%>
<form action="${pageContext.request.contextPath}/re" method="get" >
    <p><label>username：<input type="text" name="username"></label></p>
    <p><label>password：<input type="password" name="password"></label></p>
    <p>爱好：
        <input type="checkbox" name="hobbies" value="篮球" required>篮球
        <input type="checkbox" name="hobbies" value="游戏">游戏
        <input type="checkbox" name="hobbies" value="休息">休息
        <input type="checkbox" name="hobbies" value="唱歌">唱歌
    </p>
    <input type="submit">
</form>
</body>
</html>
